/**渲染头部底部公用模板
 * Created by aa on 2016/8/19.
 */

var React = require('react');
var ReactDom = require('react-dom');
var HkfsHomeBar = require('./components/pc/HkfsHomeBar.jsx');
var HkfsFooter = require('./containers/pc/HkfsFooter.jsx');
var HkfsHeader = require('./components/pc/HkfsHeader.jsx');

require('stylesheets/init.css');
require('stylesheets/Hkfsmodel.less');
require('stylesheets/HkfsHeader.less');
require('stylesheets/ReUlWithTitle.less');
require('stylesheets/HkfsFooter.less');
require('stylesheets/HkfsHomeBar.less');
require('stylesheets/ReDialog.less');

//初始化模板
ReactDom.render(
    <HkfsFooter/>, document.getElementById('HkfsFooter'));


//根据不同登录状态渲染不同的头部
/*if(sessionStorage.getItem("HkfsUserPhone")){
    ReactDom.render(
        <HkfsHeader leftData={[{imgHref:'/images/pc/header_phone.png',content:'服务热线：400-102-1010'}]}
                    rightData={[{content:sessionStorage.getItem("HkfsUserPhone")},{content:'退出',contentHref:'javascript:logOut();'},{content:'手机客户端',imgHref:'/images/pc/header_APP.png',contentHref:'www.baidu.com'},{content:'帮助',contentHref:'www.baidu.com'},{content:'欢迎来到华康财富'}]}></HkfsHeader>, document.getElementById('HkfsHeader'));
}
else {*/
    ReactDom.render(
        <HkfsHeader leftData={[{imgHref:'/images/pc/header_phone.png',content:'服务热线：400-102-1010'}]}
                    rightData={[{content:'帮助',contentHref:'#'},{content:'欢迎来到华康财富！'}]}></HkfsHeader>, document.getElementById('HkfsHeader'));
/*}*/

ReactDom.render(<HkfsHomeBar></HkfsHomeBar>, document.getElementById('HkfsBar'));

